<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
	<title>公司登录界面</title>
	<style type="text/css">
	 .clear{
	  clear:both;	
    overflow:hidden;
  }
     .fl{
     	float: left;
     }
     .fr{
     	float: right;
     }
     .a0{
      width: 100%;
      height: 100%;
      position: absolute;
      background-image: url(img/0.gif);
      float: left;
      background-size:100% 100%;
      background-repeat: no-repeat;
     }
     .a1{
     	margin: 0 auto;
     	width: 300px;
     	height: 200px;
     	list-style: none;
     	margin-top: 100px;
     	margin-left: 500px;
     	padding-top: 100px;
     	border-style: solid;
     	border-color: black;
     	border-width: 3px;
     }
  #button1-1{
     margin-top: 20px;
     background: orange;
   width: 100px;
   height: 35px;
     border-radius:10px;
     overflow:hidden;
}
  #button1-2{
     margin-top: 20px;
     background: orange;
   width: 100px;
   height: 35px;
     border-radius:10px;
     overflow:hidden;
}
	</style>

</head>
<body>
<div  class="a0">



  <form action="2.php" method="get"><ul class="fl a1">
  <li > <center><img src="img/1.jpg"><font >姓名:</font>  
  <input type="text" name="username" /></center></li>
  <li > <center> <img src="img/2.jpg" style="padding-right: 2px "><font style="padding-left: 20px;">密码:</font> 
  <input type="password" name="password" /></center></li>
  <li > 
  <center>  
         
            <input id="button1-1" type="submit" value="登录" />
            <input id="button1-2" type="reset" name="button1-1" value="清空" />
  </center>
  </li>
 </ul>
</form>

 
</div>
</body>
<script>

    var boolean1:boolean:true;
    var boolean2:boolean:false;
    var btn1 = document.getElementById("button1-2"); 

 btn1.onclick =function(){  
         for(i=0;i<document.all.tags("input").length;i++){  
        if(document.all.tags("input")[i].type=="text&&password"){  
            document.all.tags("input")[i].value="";  
        }  
    }  
    }  

</script>
</html>